package com.ruoyi.vo;

import com.ruoyi.entity.ActReDeployment;
import com.ruoyi.entity.ActReProcdef;
import lombok.Data;
import lombok.experimental.Accessors;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.bpmn.model.FlowElement;
import org.flowable.bpmn.model.UserTask;
import org.flowable.task.api.Task;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
public class NextPotentialApproversVO {
    private ActReDeployment actReDeployment; //1
    private ActReProcdef actReProcdef; //1
    private List<Map> potentialApprovers = new ArrayList<>();
    private String currentTaskId; //1
    private String processDefinitionType; //1
    private  Map processVariables; //1
    private Task currentTask; //1
    private String currentTaskDefinitionKey; //1
    private BpmnModel bpmnModel; //1
    private FlowElement currentElement; //1
    private UserTask nextUserTask;
    private Boolean nextIsEnd = null;

    public void setNextIsEnd(boolean nextIsEnd) {
        if(this.nextIsEnd != null){
            return;
        }
        this.nextIsEnd = nextIsEnd;
    }
}
